package com.farsight.leo.fssmartlock.utils;

import android.util.Log;

/**
 * Author: Administrator
 * Date: 2019/9/16
 * Project: SmartLockApp
 * Description:
 */
public class LogUtils {
    private LogUtils(){}

    public static void log(String msg) {
        StackTraceElement[] trace = new Throwable().getStackTrace();
        StackTraceElement element = trace[1];
        StringBuilder sb = new StringBuilder();
        sb.append(element.getClassName()).append("->").append(element.getMethodName())
                .append("->").append(element.getLineNumber()).append("->").append(msg);
        Log.e("LogUtils", sb.toString());
    }
}
